package com.lzk.pet.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lzk.basic.domain.BaseDomain;
import com.lzk.org.domain.Shop;
import com.lzk.user.domain.User;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 宠物实体类
 */
@Data
public class Pet extends BaseDomain {
    private String name;
    private BigDecimal costprice;
    private BigDecimal saleprice;

    private Long type_id;
    private PetType type;

    private String resources;
    private Integer state = 0 ;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date offsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date onsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createtime = new Date();

    private Long shop_id;
    private Shop shop;
    private Long user_id;
    private User user;
    //寻主ID 用于判断是否店铺收购
    private Long search_master_msg_id;

    //用于接收前端返回的宠物详情
    private PetDetail petDetail;
}
